home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / uucp / o_026 / keymap.inf < prev    next >
Text File  |  1994-11-11  |  9KB  |  267 lines

  1. # Okami Newsreader keyboard map file
  2. # Last change: Oct 28, 1994
  3. #
  4. # Syntax: key commands
  5. #
  6. #
  7. #    K E Y S
  8. #
  9. # Keys may be defined as any of:
  10. #    a) a single letter, e.g. `A' or `B', meaning that key
  11. #       (case is irrelevant)
  12. #    b) a single letter prefixed by ^, meaning that key
  13. #       plus the Control key (e.g. `^A' is Ctrl-A)
  14. #    c) a single ^, meaning the circumflex key
  15. #    d) the sequence \# (backslash hash), meaning the hash key
  16. #    e) the letter F followed by a number 1 thru 10, meaning that
  17. #       F key (e.g. `F1' is the F1 key)
  18. #    f) the letter F followed by a number 11 thru 20, meaning that
  19. #       F key minus 10 plus the Shift key (e.g. F11 is Shift-F1)
  20. #    g) one of:    meaning:
  21. #        CR    Return
  22. #        SPC    space bar
  23. #        TAB    Tab
  24. #        BACKS    Backspace
  25. #        INS    Insert
  26. #        DEL    Delete
  27. #        CLR    Clear Home
  28. #        ESC    Esc
  29. #        HELP    Help
  30. #        UNDO    Undo
  31. #        UP DOWN LEFT RIGHT
  32. #            arrow keys
  33. #       Case is insignificant with these.    
  34. #
  35. # The following keys: CR ENTER BACKS DEL
  36. # have fixed meanings for menus, therefor any configuration of these will
  37. # be in effect only if the top window is not a menu window.
  38. #
  39. #
  40. # ** important notice **
  41. # since pressing RETURN is (in ascii codes) the same as pressing
  42. # Ctrl-M, define CR (the return key) _before_ defining ^M
  43. # (control-M) or else CR will be overridden by ^M.
  44. # Similarily, define BACKS (backspace) before defining ^H and
  45. # TAB before ^I.
  46. #
  47. #
  48. #    C O M M A N D S
  49. #
  50. # Commands return 0 unless otherwise stated. An unknown command returns 1.
  51. # Generally, returning 0 means ok, other values indicate error.
  52. # User abort is not considered an error.
  53. #
  54. # Legal commands are:                        default key:
  55. #
  56. #    alert [default] string                        none
  57. #        displays a AES alert box.
  58. #        `default' and `string' are like in a call
  59. #        to form_alert. If `string' contains spaces,
  60. #        surround with ". If no `default' is given,
  61. #        1 is used.
  62. #        Return: number of button pressed.
  63. #
  64. #    cancel-msg                            F4
  65. #        cancels the message in the top window throughout the net
  66. #        by sending a "cancel" control message (Usenet) or a BX
  67. #        command (Mausnet). Does nothing if the top window is not
  68. #        a message window.
  69. #
  70. #    close-window                        ^U, ESC, UNDO
  71. #        closes the top window.
  72. #        Return: 0 if ok, 1 if no window is open.
  73. #
  74. #    cmd                                ^C
  75. #        asks for a command (one of these commands here)
  76. #        and executes it.
  77. #        Return: return value of the executed command.
  78. #
  79. #    cycle-window                            ^W
  80. #        cycles the top window.
  81. #        Return: 0 if ok, 1 if no window is open.
  82. #
  83. #    dark                                ^A
  84. #        blackens the screen until a shift key is pressed.
  85. #
  86. #    info [text]                            none
  87. #        displays `text' in an info box. If no `text' is
  88. #        given, removes the info box if there is one.
  89. #        The info box will remain on the screen until it
  90. #        is removed or replaced by a new one. This will
  91. #        not look too good if windows are moved across it
  92. #        etc. so always remove the box after using it.
  93. #        If `text' contains spaces, surround with ".
  94. #        `text' will be truncated to 40 characters.
  95. #        
  96. #    maus-set-infofiles                        F2
  97. #        subscribe to Mausnet infofiles (for Mausnet users
  98. #        only).
  99. #
  100. #    metric                                ^V
  101. #        brings up the interactive metric conversion dialog.
  102. #
  103. #    msgsort n                            none
  104. #        sets the order in which msgs are sorted in a group menu.
  105. #        n must be one of:
  106. #            0    sorts by subject
  107. #            1    sorts by author name
  108. #            2    sorts by input data
  109. #            3    sorts by dabase order
  110. #        Note: groups must be closed and re-opened in order to
  111. #        make this have an effect.
  112. #
  113. #    open-grp [name]                            F1, ^N
  114. #        opens a fold or newsgroup (depending on what `name'
  115. #        is). If no 'name' is given, asks for one. Use ""
  116. #        for `name' to open the base fold (the one containing
  117. #        all other folds and newsgroups).
  118. #
  119. #    pchelp [accname] [string]                    none
  120. #        sends the given string to the PureC help accessory.
  121. #        If no string is given, asks for one.
  122. #        The default accessory name is "PCHELP" unless you
  123. #        specify an acc name as the first parameter. The name
  124. #        must end in ".acc" (case irrelevant).
  125. #        Example: pchelp 1STGUIDE.ACC Command
  126. #        will send the string "Command" to the accessory 1STGUIDE.
  127. #        To use this feature, you must have installed the
  128. #        PureC help accessory or any other accessory that
  129. #        understands the help message format.
  130. #
  131. #    pgp                                ^T
  132. #        scans the text in the current window and does either a public
  133. #        key add, pgp decrypt and/or signature check.
  134. #
  135. #    print-window                            ^P
  136. #        send the contents of the current window to the printer.
  137. #        Return: 0 if ok, 1 if no window is open or printer makes
  138. #        trouble.
  139. #
  140. #    prg-info                            ^I
  141. #        shows the program information box.
  142. #
  143. #    redraw                                ~
  144. #        redraws the top window.
  145. #
  146. #    rot13                                TAB
  147. #        Rot-13s the current window (including header).
  148. #
  149. #    rot18                                none
  150. #        Same as rot13 but uses a variant of Rot-13 which also
  151. #        encrypts digits.
  152. #
  153. #    set variable [value]                        none
  154. #        changes the value of the given setup variable to
  155. #        the given value. If no value is given, increments the
  156. #        variable and reset to 0 if it exceeds the possible max
  157. #        value (i.e. toggles if it's a boolean).
  158. #        Recognized variables are: (max value in parantheses)
  159. #            advmsg        (1)
  160. #            singleclick    (1)
  161. #            texmode        (1)
  162. #            texteffect.mode    (1)
  163. #            buttons        (2)
  164. #        See o.inf for further information about these variables.
  165. #
  166. #    set-msg-flags { options }                    F
  167. #        sets the flags of the message in the top window.
  168. #        If the top window is a message list menu, sets the flags of
  169. #        the message under the cursor.
  170. #        If no options are given, displays the "set msg flags" dialog
  171. #        and sets flags interactively.
  172. #        If options are given, does not display a dialog but sets
  173. #        flags according to the options.
  174. #        Options may be:
  175. #            - a plus sign followd by flag letters, will set these
  176. #              flags. Flag letters are r, k, p, or l.
  177. #            - a minus sign followed by flag letters, will clear
  178. #              these flags.
  179. #            - one or more of:
  180. #              X    sets flags for crossposts too
  181. #              G    does not set flags for current group
  182. #              S    sets for all msgs of same subject
  183. #              W    sets for all msgs of group
  184. #        The default is to set flags for the current msg in the current
  185. #        group and to leave crossposts unaffected.
  186. #        Example: set-msg-flags S +k -p
  187. #        will set the "killed"-flag and clear the "protected"-flag on
  188. #        all msgs with the same subject as the current msg.
  189. #
  190. #    setup                                none
  191. #        displays the O setup dialog.
  192. #
  193. #    sh [cmd]                            ^Z
  194. #        calls the shell to run `cmd'. Asks for a command
  195. #        if no `cmd' is given.
  196. #        Return: 1 if no shell installed, else return value
  197. #        of the shell.
  198. #
  199. #    test.menu                            none
  200. #        Returns 0 if the top window is a menu window, or 1 if
  201. #        it is a browser window or no window is open. Use this to
  202. #        prevent commands from running with menu windows, e.g.:
  203. #        ! test.menu || sh
  204. #        This will run the shell when pressing !, but only if the
  205. #        current window (if there is one) is no menu window.
  206. #
  207. #    test.view                            none
  208. #        Returns 0 if the top window is a browser window, or 1 if
  209. #        it is a menu window or no window is open. Use this to define
  210. #        commandos for browser windows only, e.g.:
  211. #        ^P test.view && print.window
  212. #
  213. #    view-file [filename]                        ^O
  214. #        displayes the named file; asks for a file name if
  215. #        none is given. If `filename' is SCRAP (case significant),
  216. #        the current .txt file on the AES clipboard will be
  217. #        displayed.
  218. #        Return: 0 if ok, 1 if file cannot be read or no
  219. #        window left.
  220. #
  221. #    write-msg                            F10
  222. #        writes a new message. Type of message (reply, followup,
  223. #        new mail, new posting) is decided according to the top
  224. #        window (msg, newsgroup, mail etc).
  225. #        Return: 0 a new msg was written, 1 no message was written.
  226. #
  227. #    write-reply                            F9
  228. #        same as write-msg but always writes mail.
  229. #
  230.  
  231. # Commands may be concatenated in the following way:
  232. #
  233. #    cmd1 ; cmd2
  234. #        executes cmd1 and then cmd2.
  235. #    cmd1 || cmd2
  236. #        executes cmd1, then executes cmd2 if cmd1 returned non-0.
  237. #    cmd1 && cmd2
  238. #        executes cmd1, then executes cmd2 if cmd1 returned 0.
  239. #
  240. # Be sure to use spaces around ; || &&. This language is not yet really
  241. # sh-compatible although I'd like it to be.
  242. #
  243. #
  244.  
  245. !        sh
  246. ^A        dark
  247. ^C        cmd
  248. ^R        set texteffect.mode ; redraw
  249. F        set-msg-flags
  250. Tab        rot13 && redraw
  251. ^I        prg-info
  252. ^N        open-grp
  253. ^O        view-file
  254. ^P        print-window
  255. ^T        pgp
  256. ^U        close-window
  257. ^W        cycle-window
  258. ^Z        sh
  259. F1        open-grp ""
  260. F2        maus-set-infofiles
  261. F3        sh "omausexp -g"
  262. F4        cancel-msg
  263. F9        write-reply
  264. F10        write-msg
  265. UNDO        close-window
  266. ESC        close-window
  267.